local Editor = {}Editor.__index = Editorlocal EditorInstance = nilfunction Tubes.Editor ()	if not EditorInstance then		EditorInstance = {}		setmetatable (EditorInstance, Editor)		EditorInstance:ctor ()				Tubes:AddEventListener ("Unload", function ()			EditorInstance:dtor ()			EditorInstance = nil		end)	end	return EditorInstanceendfunction Editor:ctor ()	self.Panel = vgui.Create ("TubesEditorFrame")endfunction Editor:dtor ()	self.Panel:Remove ()endfunction Editor:GetFrame ()	return self.Panelendconcommand.Add ("tubes_show_editor", function ()	Tubes.Editor ():GetFrame ():SetVisible (true)end)